##############################################################################
# Python From Scratch
# Autor: Nilo Ney Coutinho Menezes
# Editora Novatec (c) 2010-2024
# Site: https://pythonfromscratch.com
#
# File: listing\chapter 10\10.1464 - No Title.py
# Description: No Title
##############################################################################
from functools import total_ordering
@total_ordering
class PhoneType:
def __init__(self, type):
self.type = type
def __str__(self):
return f"({self.type})"
def __eq__(self, other):
if other is None:
return False
return self.type == other.type
def __lt__(self, other):
return self.type < other.type